using FairyGUI;
using ZFramework.Runtime;

namespace ZGame
{
    public class UIMainFormLogic : FGuiUIFormLogicBase
    {
        public override string UIPackageName => "Taskdaily";

        public override string UIComponentName => "task";
        
        
        public override void OnInit(object userData)
        {
            base.OnInit(userData);
            var com = UI.GetChild("_titleblock").asCom;
            com.GetChild("_close").asButton.onClick.Set(delegate(EventContext context)
            {
                Log.Error("点击了按钮！！！");
                GameEntry.uiMgr.CloseUI(UiForm, null);
            });
        }
    }
}